import { App } from 'vue'
import { registerFormDetailProvider } from '@ibiz-template/runtime'
import { withInstall } from '@ibiz-template/vue3-util'
import FormItemG6Design from './form-item-g6-design'
import { FormItemG6DesignProvider } from './provider'

export const IBizFormItemG6Design = withInstall(FormItemG6Design, function (v: App) {
  v.component(FormItemG6Design.name, FormItemG6Design)
  registerFormDetailProvider(
    'FORM_USERCONTROL_FORMITEM_G6DESIGN',
    () => new FormItemG6DesignProvider()
  )
  registerFormDetailProvider(
    'FORM_USERCONTROL_FormItemG6Design',
    () => new FormItemG6DesignProvider()
  )
})
